<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function xd(a,b,c){
            console.log(arguments);
            for(var i=3;i<=5;i++){
                console.log(arguments[i]);
            }
            console.log(a+b+c);
        }
        xd(1,2,3,4,5,6);
    </script>
</body>
</html>